package com.itfreer.file;

/**
 * 定义文件存储路径参数
 */
public class AnalyseFilePathPara {
	
	private String filePath;

	/**
	 * 获取文件路径
	 * @return
	 */
	public String getFilePath() {
		return filePath;
	}
	
	/**
	 * 设置允许上传的最大文件大小，单位MB，基于后台服务限制
	 * 102400 * 1024 = 100M
	 */
	private long maxSize = 102400 * 1024;
	
	/**
	 * 默认的标准文件上传存储块名称
	 */
	private String bucketName = "plupload";
	
	/**
	 * 前端文件块大小，单位b
	 */
	private int segmentSize = 512 * 1024;

	public long getMaxSize() {
		return maxSize;
	}

	public void setMaxSize(long maxSize) {
		this.maxSize = maxSize;
	}

	public String getBucketName() {
		return bucketName;
	}

	public void setBucketName(String bucketName) {
		this.bucketName = bucketName;
	}

	public int getSegmentSize() {
		return segmentSize;
	}

	public void setSegmentSize(int segmentSize) {
		this.segmentSize = segmentSize;
	}

	/**
	 * 设置文件路径
	 * @param filePath
	 */
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
}